#ifndef FRUITW4_H_
#define FRUITW4_H_

class Fruit
{
public:
	Fruit(int n, double w, char c) :no(n), weight(w), key(c){ }
	void print() { }
	virtual void process() { }
private:
	int no;
	double weight;
	char key;
};

class Apple:public Fruit
{
public:
	Apple(const Fruit& f, int s, char t) :Fruit(f), size(s), type(t){ }
	void save(){ }
	virtual void process() { }
private:
	int size;
	char type;
};

#endif
